home *** CD-ROM | disk | FTP | other *** search
- property spriteNum, preTabProf, preTabProd, preTabServ, postTabProf, postTabProd, postTabServ
- global InvoiceFormTemplate
-
- on getPropertyDescriptionList
- description = [:]
- addProp(description, #preTabProf, [#default: -1, #format: #integer, #comment: "Backtab Pro.:"])
- addProp(description, #preTabProd, [#default: -1, #format: #integer, #comment: "Backtab Product:"])
- addProp(description, #preTabServ, [#default: -1, #format: #integer, #comment: "Backtab Service:"])
- addProp(description, #postTabProf, [#default: -1, #format: #integer, #comment: "Tab Pro.:"])
- addProp(description, #postTabProd, [#default: -1, #format: #integer, #comment: "Tab Product:"])
- addProp(description, #postTabServ, [#default: -1, #format: #integer, #comment: "Tab Service:"])
- return description
- end
-
- on keyDown me
- if the key = TAB then
- if the shiftDown then
- threeWaySplit("PRE")
- else
- threeWaySplit("POST")
- end if
- end if
- pass()
- end
-
- on amIpreLegal me
- if (sprite(spriteNum).locV <= (0 - sprite(spriteNum).height)) or (sprite(spriteNum).locV >= 600) then
- threeWaySplit("PRE")
- end if
- end
-
- on amIpostLegal me
- if (sprite(spriteNum).locV <= (0 - sprite(spriteNum).height)) or (sprite(spriteNum).locV >= 600) then
- threeWaySplit("POST")
- end if
- end
-
- on threeWaySplit foreaft
- if foreaft = "PRE" then
- case InvoiceFormTemplate of
- "Professional Invoice":
- the keyboardFocusSprite = preTabProf
- sendSprite(preTabProf, #amIpreLegal)
- "Product Invoice":
- the keyboardFocusSprite = preTabProd
- sendSprite(preTabProd, #amIpreLegal)
- "Service Invoice":
- the keyboardFocusSprite = preTabServ
- sendSprite(preTabServ, #amIpreLegal)
- end case
- else
- case InvoiceFormTemplate of
- "Professional Invoice":
- the keyboardFocusSprite = postTabProf
- sendSprite(postTabProf, #amIpostLegal)
- "Product Invoice":
- the keyboardFocusSprite = postTabProd
- sendSprite(postTabProd, #amIpostLegal)
- "Service Invoice":
- the keyboardFocusSprite = postTabServ
- sendSprite(postTabServ, #amIpostLegal)
- end case
- end if
- end
-